var _account_service = require('service/account-service.js');

account = {username: "j2ee", password: "j2ee"};
var header = {
    init: function(){
        this.bindEvents();
        this.loadAccountInfo();
        return this;
    },
    bindEvents: function(){

    },
    loadAccountInfo: function(){
        _account_service.login(
            account,
            function(res){
                console.log("Success");
            },
            function(errMsg){
                console.log("Error...");
            }
        )
    }
}

module.exports = header.init();